detect use location in javascript